//
//  TTService.swift
//  TianTianBiTing
//
//  Created by Gox mac 2 on 2018/12/28.
//  Copyright © 2018 Gox_WallyDiao. All rights reserved.
//

import UIKit
import Alamofire
import SwiftyJSON
import HandyJSON

class TTService: NSObject {
    static let shared = TTService.init()
    private override init() {
        
    }
}

//  MARK: - ###### 公有方法 ######
extension TTService {
    func request(_ url: String, method:Alamofire.HTTPMethod , parameters: Parameters? , headers: HTTPHeaders? ,result: @escaping (JSON) -> Void) {
        
        TTServiceManager.shared.request(url, method: method, parameters: parameters, headers: headers, result: result)
        
    }
    
    func requestNew(_ url: String, method:Alamofire.HTTPMethod , parameters: Parameters? , headers: HTTPHeaders? ,result: @escaping (JSON) -> Void) {
        
        TTServiceManager.shared.requestNew(url, method: method, parameters: parameters, headers: headers, result: result)
        
    }

}
